package com.henry.dicesim;

import java.util.Random;

class Dice {
    Random randomSource = new Random();
    int reading;
    Dice() {
        this.flip();
    }
    public int getReading() {
        return reading;
    }
    public void flip() {
        reading = 1 + randomSource.nextInt(6);
    }
}

